Optimal. Leaf size=96 \[ \frac {(A-B) c \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{2 f \sqrt {c-c \sin (e+f x)}}+\frac {B c \cos (e+f x) (a+a \sin (e+f x))^{5/2}}{3 a f \sqrt {c-c \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.22, antiderivative size = 96, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 40, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.050, Rules used = {3050, 2817}
\begin {gather*} \frac {c (A-B) \cos (e+f x) (a \sin (e+f x)+a)^{3/2}}{2 f \sqrt {c-c \sin (e+f x)}}+\frac {B c \cos (e+f x) (a \sin (e+f x)+a)^{5/2}}{3 a f \sqrt {c-c \sin (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2817
Rule 3050
Rubi steps
\begin {align*} \int (a+a \sin (e+f x))^{3/2} (A+B \sin (e+f x)) \sqrt {c-c \sin (e+f x)} \, dx &=\frac {B \int (a+a \sin (e+f x))^{5/2} \sqrt {c-c \sin (e+f x)} \, dx}{a}-(-A+B) \int (a+a \sin (e+f x))^{3/2} \sqrt {c-c \sin (e+f x)} \, dx\\ &=\frac {(A-B) c \cos (e+f x) (a+a \sin (e+f x))^{3/2}}{2 f \sqrt {c-c \sin (e+f x)}}+\frac {B c \cos (e+f x) (a+a \sin (e+f x))^{5/2}}{3 a f \sqrt {c-c \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.40, size = 81, normalized size = 0.84 \begin {gather*} -\frac {a \sec (e+f x) \sqrt {a (1+\sin (e+f x))} \sqrt {c-c \sin (e+f x)} (-2 (6 A+B) \sin (e+f x)+\cos (2 (e+f x)) (3 (A+B)+2 B \sin (e+f x)))}{12 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.38, size = 91, normalized size = 0.95
method | result | size |
default | \(\frac {\left (-2 B \left (\cos ^{2}\left (f x +e \right )\right )+3 A \sin \left (f x +e \right )+3 B \sin \left (f x +e \right )+6 A +2 B \right ) \sqrt {-c \left (\sin \left (f x +e \right )-1\right )}\, \sin \left (f x +e \right ) \left (a \left (1+\sin \left (f x +e \right )\right )\right )^{\frac {3}{2}}}{6 f \left (1+\sin \left (f x +e \right )\right ) \cos \left (f x +e \right )}\) | \(91\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 93, normalized size = 0.97 \begin {gather*} -\frac {{\left (3 \, {\left (A + B\right )} a \cos \left (f x + e\right )^{2} - 3 \, {\left (A + B\right )} a + 2 \, {\left (B a \cos \left (f x + e\right )^{2} - {\left (3 \, A + B\right )} a\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c}}{6 \, f \cos \left (f x + e\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{\frac {3}{2}} \sqrt {- c \left (\sin {\left (e + f x \right )} - 1\right )} \left (A + B \sin {\left (e + f x \right )}\right )\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.51, size = 153, normalized size = 1.59 \begin {gather*} -\frac {2 \, {\left (4 \, B a \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{6} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + 3 \, A a \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) - 3 \, B a \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \sqrt {a} \sqrt {c}}{3 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 14.29, size = 122, normalized size = 1.27 \begin {gather*} -\frac {a\,\sqrt {a\,\left (\sin \left (e+f\,x\right )+1\right )}\,\sqrt {-c\,\left (\sin \left (e+f\,x\right )-1\right )}\,\left (3\,A\,\cos \left (e+f\,x\right )+3\,B\,\cos \left (e+f\,x\right )+3\,A\,\cos \left (3\,e+3\,f\,x\right )+3\,B\,\cos \left (3\,e+3\,f\,x\right )-12\,A\,\sin \left (2\,e+2\,f\,x\right )-2\,B\,\sin \left (2\,e+2\,f\,x\right )+B\,\sin \left (4\,e+4\,f\,x\right )\right )}{12\,f\,\left (\cos \left (2\,e+2\,f\,x\right )+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________